projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ad7f2b
)
(mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Thu, 9 Aug 2007 09:36:31 +0000
(09:36 +0000)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Thu, 9 Aug 2007 09:36:31 +0000
(09:36 +0000)
for window repositioning.
src/macterm.c
patch
|
blob
|
history
diff --git
a/src/macterm.c
b/src/macterm.c
index d1d9205d5dc8e4091317b95f0024cde934859c72..7d6934b806bde9ba71b0be2084acc44ea856741d 100644
(file)
--- a/
src/macterm.c
+++ b/
src/macterm.c
@@
-10719,7
+10719,10
@@
mac_handle_window_event (next_handler, event, data)
/* This is a workaround. RepositionWindow fails to put
a window at the cascading position when its parent
window has a Carbon HIToolbar. */
- if (f->top_pos == sf->top_pos && f->left_pos == sf->left_pos)
+ if ((f->left_pos == sf->left_pos
+ && f->top_pos == sf->top_pos)
+ || (f->left_pos == sf->left_pos + 10 * 2
+ && f->top_pos == sf->top_pos + 32 * 2))
MoveWindowStructure (wp, f->left_pos + 10, f->top_pos + 32);
#endif
}